








//
//  MBQZVCFactory.m
//  发布求租
//
//  Created by MB__Lee on 2018/6/8.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBQZVCFactory.h"

@implementation MBQZVCFactory
+(MBReleaseQZVC *)MBQZVCFactoryCreatWithType:(ReleaseQZVCType)type{
    MBReleaseQZVC *vc;
    if (type == ReleaseVCTypeResident) {
        vc  = [[MBReleaseResidentVC alloc] init];
        vc.type = ReleaseVCTypeResident;
    }else if (type == ReleaseVCTypeOffBuilding){
        vc = [[MBReleaseOffBuildVC alloc] init];
        vc.type = ReleaseVCTypeOffBuilding;
    }else if (type == ReleaseVCTypeShop){
        vc = [[MBReleaseShopVC alloc] init];
        vc.type = ReleaseVCTypeShop;
    }
    return  vc;
    
    
}

@end
